package August;

import java.util.Scanner;

public class Day0816 {
    //客似云来
    public static void main1(String[] args) {
        long[] fei = new long[81];
        fei[0] = 1;
        fei[1] = 1;
        fei[2] = 2;
        for (int i = 3; i < fei.length; i++) {
            fei[i] = fei[i-1]+fei[i-2];
        }
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()){
            int from = scanner.nextInt();
            int to = scanner.nextInt();

            long count = 0;
            for (int i =from-1; i < to; i++) {
                count += fei[i];
            }
            System.out.println(count);
        }
    }


    //剪花布条
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()){
            String s = scanner.next();
            String t = scanner.next();

            int res = 0;

            while (s.contains(t)){
                res++;
                s = s.replaceFirst(t,"");
            }
            System.out.println(res);
        }
    }
}
